package com.zzty.dendi.mapper;

import com.zzty.dendi.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {

    @Select("select * from user  limit #{startPageNo},3")
    public List<User> getUserByPageNo(@Param("startPageNo") Integer startPageNo);

    @Select("select count(*) from user")
    public int getTotalCount();
}
